

import java.io.IOException;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Enumeration;

import chatControler.ChatControler;
import chatGUI.ChatGUI;
import chatNI.ChatNI;

import javax.swing.UIManager;
import javax.swing.UIManager.*;


public class Chat {
	
	public static void main(String[] args) throws IOException{
		try {
		    for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
		        if ("Nimbus".equals(info.getName())) {
		            UIManager.setLookAndFeel(info.getClassName());
		            break;
		        }
		    }
		} catch (Exception e) {
		    // If Nimbus is not available, you can set the GUI to another look and feel.
		}
		ChatControler chatControler = new ChatControler();
		ChatGUI chatGUI = new ChatGUI(chatControler) ;
		ChatNI chatNI = new ChatNI(chatControler);
		
	}
	

}
